class OldPerson {
  name: string
  age: number
  constructor(name: string, age: number) {
    this.name = name
    this.age = age
  }
}

// 下面的相当于上面的简写
class NewPerson {
  constructor(
    public name: string,
    public age: number
  ) {}
}



export {}